use crate::controller::user_controller as user;

use actix_web::web::ServiceConfig;


pub(crate) fn user_routers(service_config: &mut ServiceConfig) {
    service_config
        .service(actix_web::web::scope("/admin/user")

            .service(user::new_user)
            .service(user::update_user)
            .service(user::delete_user)
            .service(user::list_user)
            .service(user::auth_role)
            .service(user::choose_default_role)
        );
}